﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0056)http://www.dz863.com/all-technology/LCD/3310LCD-8051.htm -->
<!--
--><HTML><HEAD><TITLE>诺基亚3310LCD屏8051单片机源代码</TITLE>
<META http-equiv=content-type content="text/html; charset=utf-8">
<META http-equiv=Content-Language content=utf-8>
<META content=all name=robots>
<META content="designed by dz863.com" name=author>
<META content=电子先锋网 name=Copyright>
<META content="3310LCD,LCD,Liquid Crystal Display,LCD,液晶开发" name=keywords>
<META content="3310LCD 诺基亚3310LCD屏8051单片机源代码" name=description><LINK 
href="http://www.dz863.com/favicon.ico" type=image/x-icon rel=icon><LINK 
href="http://www.dz863.com/favicon.ico" type=image/x-icon 
rel="shortcut icon"><LINK media=all href="诺基亚3310LCD屏8051单片机源代码.files/file1.css" 
type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3354" name=GENERATOR></HEAD>
<BODY onmouseover="window.status='www.dz863.com';return true">
<DIV id=box>
<DIV id=header><A href="http://www.dz863.com/"><IMG title=电子先锋 height=90 
alt=电子先锋 src="诺基亚3310LCD屏8051单片机源代码.files/elelogo.gif" width=480 
border=0></A></DIV>
<DIV id=navcat><A title=微处理器-Microprocessors 
href="http://www.dz863.com/Microprocessors/Microprocessors.htm">微处理器</A> | <A 
title=嵌入式开发-Embedded-Systems-Design 
href="http://www.dz863.com/Embedded-Systems-Design/Embedded-Systems-Design.htm">嵌入式开发</A> 
| <A title=电源开发-Power-Management-design 
href="http://www.dz863.com/Power-Management-design/Power-Management-design.htm">电源开发</A> 
| <A title=控制技术-Control-Technology 
href="http://www.dz863.com/Control-Technology/Control-Technology.htm">控制技术</A> | 
<A title=可编程逻辑器-Programable-Logic-Devices 
href="http://www.dz863.com/Programable-Logic-Devices/Programable-Logic-Devices.htm">可编程逻辑器</A> 
| <A title=无线与通信-mobile-wireless-communication 
href="http://www.dz863.com/mobile-wireless-communication/mobile-wireless-communication.htm">无线与通信</A> 
| <A title=接口开发-interface-circuits 
href="http://www.dz863.com/interface-circuits/interface-circuits.htm">接口开发</A> | 
<A title=总线技术-BUS href="http://www.dz863.com/BUS/BUS.htm">总线技术</A> | <A 
title=综合技术-all-technology 
href="http://www.dz863.com/all-technology/all-technology.htm">综合技术</A> | <A 
title=驱动开发-Driver-Develop 
href="http://www.dz863.com/Driver-Develop/Driver-Develop.htm">驱动开发</A> | <A 
title=实时操作系统-RTOS href="http://www.dz863.com/RTOS/RTOS.htm">实时操作系统</A> | </DIV>
<DIV id=nav>您当前位于 <A href="http://www.dz863.com/">电子先锋</A> &gt; <A 
href="http://www.dz863.com/all-technology/all-technology.htm">综合技术</A> &gt; <A 
href="http://www.dz863.com/all-technology/LCD-1.htm" 
target=_self>液晶(LCD)开发</A>(技术文档与实用电路) &gt; 查看内容 <BR>
<FORM style="DISPLAY: inline; MARGIN: 0px" name=form_pn 
action=http://www.digchip.com/lang/cn/quote.php method=get 
target=_blank><STRONG><BR>在<A href="http://www.digchip.com/" target=_blank 
rel="external nofollow">digchip.com</A>查找芯片手册，并知道从那里购买器件，输入器件型号： <INPUT size=22 
name=pn> <INPUT type=hidden value=3 name=partener> <INPUT type=submit value=Search> </STRONG></FORM></DIV>
<DIV id=headtitle>
<H1>诺基亚3310LCD屏8051单片机源代码</H1></DIV>
<DIV id=titleinfo>作者: longsan &nbsp;&nbsp;发布日期:2006-03-12 14:33 
&nbsp;&nbsp;查看数:14 &nbsp;&nbsp;出自:丁丁</DIV>
<DIV id=left>
<DIV style="DISPLAY: inline; FLOAT: left; MARGIN: 5px 0px 5px 50px">
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-4138268392935403";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text_image";
google_ad_channel ="0643466337";
google_color_border = "F9F9F9";
google_color_bg = "F9F9F9";
google_color_link = "0000FF";
google_color_url = "FF0000";
google_color_text = "000000";
//--></SCRIPT>

<SCRIPT src="诺基亚3310LCD屏8051单片机源代码.files/show_ads.js" type=text/javascript>

</SCRIPT>
</DIV>
<DIV class=wrap>
<P>诺基亚&nbsp;3310 LCD屏 基本资料:<BR>&nbsp;Nokia 3310 LCD, 84x48 pixels<BR>The Nokia 
3310 LCD is a nice small graphical LCD, suitable for a lot of various projects. 
<BR>The display is 38*35 mm, with an active display surface of 30*22 mm, and a 
84*48 pixel resolution. <BR>The display is easy to interface, using standard SPI 
communication. A 1-10 uF electrolytic capacitor from VOUT to GND, is the only 
external component needed. <BR><BR>* Logic supply voltage range VDD to VSS : 2.7 
to 3.3 V <BR>* Low power consumption, suitable for battery operated systems 
<BR>* Temperature range: -25 to +70 °C <BR>非常精简的3310源代码，keil版的<A class=keyurl 
title=8051单片机 href="http://www.dz863.com/Microprocessors/MCS-8051.htm" 
target=_blank>8051单片机</A>源代码:<BR><PRE><BR>#define uchar unsigned char <BR>#define uint unsigned int <BR>//可以改动端口 <BR>sbit sclk=P2^0;//时钟 <BR>sbit sdin=P2^1; //数据 <BR>sbit dc=P2^2;//1写数据，0写指令 <BR>sbit sce=P2^3;//片选 <BR>sbit res=P2^4;//复位,0复位 <BR><BR>void write_byte(uchar datatemp,bit mod)//写一字节 mod=0,命令模式 通用 <BR>{ <BR>uchar i=8; <BR>sce=0; <BR>dc=mod; <BR>while (i--) <BR>{ <BR>if (datatemp&amp;0x80){sdin=1;} <BR>else {sdin=0;} <BR>sclk=0; <BR>sclk=1; <BR>datatemp&lt;&lt;=1; <BR>} <BR>dc=1; <BR>sce=1; <BR>sdin=1; <BR>} <BR><BR>void init(void) //初始化 通用 <BR>{ <BR>res=0; <BR>Adelay(10); <BR>res=1; <BR>sce=1; <BR>sdin=1; <BR>sclk=1; <BR>write_byte(0x21,0);//初始化Lcd,功能设定使用扩充指令 <BR>write_byte(0xd5,0);//设定液晶偏置电压(高--低） <BR>write_byte(0x20,0);//使用基本指令 <BR>write_byte(0x0C,0);//设定显示模式，正常显示 <BR>} <BR><BR>void setadd(uchar a,uchar d)//设定地址 <BR>{ <BR>write_byte((a|0x80),0);//设定x坐标 <BR>write_byte((d|0x40),0);//设定y坐标 <BR>} <BR><BR>void clr()//清屏 <BR>{ <BR>uchar t,k; <BR>uint d; <BR>d=0; <BR>// setdd(0,0); <BR>for(t=0;t&lt;6;t++) <BR>{ <BR>for(k=0;k&lt;84;k++) <BR>{ <BR>setadd(k,t); <BR>write_byte(0,1); <BR>d=d+1; <BR>if(d&gt;504)d=d-504; <BR>} <BR>} <BR>} <BR><BR>//写汉字 <BR>void WriteCh(uchar *p,char x0,char x1,char y0,char y1,char z0) <BR>//*p是数组字模，x0是横向初始坐标，x1横向结束坐标,x(0~84) <BR>//y0是纵向初始坐标，y1纵向结束坐标，y(0~5) z0数组长度 <BR>{ <BR>unsigned char z,x,y; <BR>for(x=x0;x&lt;x1;x++) <BR>{ <BR>for(y=y0;y&lt;y1;y++) <BR>{ <BR>setadd(x,y); ///定位 <BR>write_byte(*p,1); <BR>Adelay(4); <BR>p++; //写下一位 <BR>z++; //数组长度 <BR>if(z==z0) <BR>{ <BR>y0+=2; <BR>//n+=2; <BR>z=0; <BR>} <BR>} <BR>} <BR>} <BR><BR>//写数字 <BR>void WriteDa(uchar num,char x0,char x1,char y0,char y1,char z0) <BR>{ <BR>unsigned char z=0,x,y; <BR>for(x=x0;x&lt;x1;x++) <BR>{ <BR>for(y=y0;y&lt;y1;y++) <BR>{ <BR>setadd(x,y); ///定位 <BR>write_byte(dal3[num][z],1); <BR>Adelay(4); <BR>z++; <BR>if(z==z0) <BR>{ <BR>y0+=2; <BR>z=0; <BR>} <BR>} <BR>} <BR>} </PRE>
<P></P>
<DIV 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; TEXT-ALIGN: center"></DIV>
<DIV 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; TEXT-ALIGN: center">
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-4138268392935403";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="0643466337";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "339900";
google_color_url = "0033FF";
google_color_text = "009999";
//--></SCRIPT>

<SCRIPT src="诺基亚3310LCD屏8051单片机源代码.files/show_ads.js" type=text/javascript>
</SCRIPT>
</DIV>
<DIV id=Disclaimer>相关文章(最新&amp;最热)</DIV>
<DL id=Related>
  <UL>
    <LI><A 
    href="http://www.dz863.com/Embedded-Systems-Design/Embedded-Design/longli.htm">农历转换函数（C语言版)</A> 
    ( 2006-03-12 14:19)
    <LI><A 
    href="http://www.dz863.com/Embedded-Systems-Design/Embedded-Design/C-embedd.htm">C语言编码规范-强烈推荐</A> 
    ( 2006-03-12 14:16)
    <LI><A 
    href="http://www.dz863.com/Power-Management-design/Power-Supply-Design/power-circuits-IC.htm">常用电源IC</A> 
    ( 2006-03-12 14:14)
    <LI><A 
    href="http://www.dz863.com/interface-circuits/USB/usb-GetDescriptor.htm">usb枚举步骤</A> 
    ( 2006-03-12 13:49)
    <LI><A 
    href="http://www.dz863.com/mobile-wireless-communication/GPRS/CDMA2000-GPRS.htm">CDMA2000 
    1X和GPRS网络的对比</A> ( 2006-03-12 13:48) 
    <LI><A 
    href="http://www.dz863.com/all-technology/Electronics-Glossary/Smith-circuits.htm">什么是阻抗匹配以及为什么要阻抗匹配</A> 
    ( 2006-03-12 14:49)
    <LI><A 
    href="http://www.dz863.com/Microprocessors/MCS-8051/8051-ASM-MCU.htm">8051单片机汇编程序编码规范</A> 
    ( 2006-03-12 14:58)
    <LI><A 
    href="http://www.dz863.com/all-technology/LCD/SED1335-LCD-C51.htm">LCD驱动芯片SED1335控制器C51源程序</A> 
    ( 2006-03-12 15:13)
    <LI><A 
    href="http://www.dz863.com/all-technology/electronic-design-contests/mega16-CodeWizardAVR.htm">03年全国大学生电子设计竞赛智能小车资料mega16</A> 
    ( 2006-03-12 15:22)
    <LI><A 
    href="http://www.dz863.com/all-technology/LCD/AT89C51-KS0070-LCD.htm">AT89C51与字符型液晶模块(KS0070)联接的C语言源程</A> 
    ( 2006-03-12 15:28)</LI></UL></DL></DIV>
<DIV id=footer>
<P><A href="http://www.dz863.com/sitemap.htm">站点地图</A>&nbsp;&nbsp;| 
&nbsp;&nbsp;<A href="http://www.dz863.com/about.htm"> 关于我们</A>&nbsp;&nbsp;| 
&nbsp;&nbsp;<A href="http://www.dz863.com/links.htm"> 友情链接</A>&nbsp;&nbsp;| 
&nbsp;&nbsp;<A href="http://www.dz863.com/copy.htm"> 版权说明</A>&nbsp;&nbsp;| <A 
href="http://www.dz863.com/website/index.htm" target=_blank><FONT 
color=red>电子网站导航</FONT></A> &nbsp;&nbsp;|&nbsp;<A 
href="http://www.dz863.com/it/index.htm" target=_blank>程序设计网站导航</A> </P></DIV>
<DIV id=copyright>
<P>
<DIV 
style="FONT: 12px/15px arial,helvetica,sans-serif; TEXT-ALIGN: center">本站命名由来: 
www.dz863.com(<FONT color=red>dz</FONT>代表<FONT color=green>电子</FONT>的拼音,<FONT 
color=red>863</FONT>代表<FONT color=green>中国高技术研究发展计划</FONT>,即<FONT 
color=red>863计划</FONT>,这里就是<FONT color=red>先锋</FONT>的意思),希望大家能记住</DIV>
<DIV style="FONT: 12px/15px arial,helvetica,sans-serif; TEXT-ALIGN: center"><A 
href="http://www.dz863.com/">www.<B><FONT color=#0000ff>dz</FONT><FONT 
color=#ff0000>863</FONT></B>.com</A> 版权所有，未经授权禁止复制或建立镜像。谢谢!本站为<FONT 
color=green><B>非盈利性</B></FONT>网站,<FONT color=red>别忘了告诉您的好朋友</FONT></DIV>
<DIV 
style="FONT: 12px/15px arial,helvetica,sans-serif; TEXT-ALIGN: center"><FONT 
color=red>联系方式</FONT></A> email:dz863<FONT color=red>@</FONT>163.<FONT 
color=green>com</FONT> &nbsp;&nbsp;&nbsp;qq:349398000 <A 
href="http://www.miibeian.gov.cn/">ICP备05008724</A></DIV>
<P></P></DIV></DIV>
<SCRIPT language=JavaScript src="诺基亚3310LCD屏8051单片机源代码.files/pagecount.htm" 
type=text/JavaScript></SCRIPT>
<!----></DIV></BODY></HTML>
